<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var a = "48sdf41ad#$#@$f7df51pemix";
			var b = 0;
			var c = 0;
			var s = 0;
			for(var i = 0;i<a.length;i++){
				if(/[a-z]/.test(a[i])){
					b++;
				}else if(/[0-9]/.test(a[i])){
					c++;
				}else{
					s++;
				}
			}
			document.write("其他："+s+"<br/>");
			document.write("字母个数："+b+"<br/>");
			document.write("数字个数："+c);
		</script>
	</body>
</html>
